<?php $__env->startSection('content'); ?>
<div class="row">
    <div class="col-md-12">
        <!--breadcrumbs start -->
        <ul class="breadcrumb panel">
            <li><a href="#"><i class="fa fa-home"></i> 首页</a></li>
            <li><a href="<?php echo e(url('info/index')); ?>">信息管理</a></li>
            <li><a href="#"><?php echo e($res->name); ?></a></li>
            <li class="active"><a href="<?php echo e(url('info/add',['cat_id'=>$res->cate_id])); ?>">添加</a></li>
        </ul>
        <!--breadcrumbs end -->
    </div>
</div>
<div class="panel panel-default">
    <div class="panel-body">
        <?php if($page[0]): ?>
             <table class="table table-bordered table-striped">
            <tr class="success">
                <td>标题</td>
                <td>发布时间</td>
                <td>操作</td>
            </tr>
            <?php $__currentLoopData = $page; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
            <tr>
                <td><?php echo e($key->title); ?></td>
                <td><?php echo e($key->creattime); ?></td>
                <td>
                    <a class="btn btn-primary btn-xs" href="<?php echo e(url('info/edit',['id'=>$key->info_id])); ?>">编辑</a>
                    <button class="btn btn-default btn-xs" type="button" onclick="del(<?php echo e($key->info_id); ?>);">删除</button>
                </td>
            </tr>
            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </table>
        <?php echo e($page->links()); ?>

        <?php else: ?>
            暂无数据
        <?php endif; ?>
    </div>
</div>
<?php $__env->stopSection(); ?>



<?php $__env->startSection('js'); ?>
<script src="<?php echo e(asset('adminex')); ?>/layer/layer.js"></script>
<script type="text/javascript">
</script>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('admin.layouts.app', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>